import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';

@Component({
  selector: 'app-dbconfig',
  templateUrl: './dbconfig.component.html',
  styleUrls: ['./dbconfig.component.css']
})
export class DbconfigComponent implements OnInit {
  validateForm:FormGroup;

  constructor(
    private fb:FormBuilder
  ) { }

  ngOnInit() {
    this.validateForm = this.fb.group({
      server:[null,Validators.required],
      port:['3306',Validators.required],
      userName:['root',Validators.required],
      password:['!Xdf123456',Validators.required]
    });
  }

  submitForm(){
    
  }

}
